import {log4js} from "../node-test";

log4js.configure({
  appenders: {
    console: { type: 'console' },
    infoLogs: { type: 'dateFile', filename: 'logs/info.log' },
    errorLogs: { type: 'dateFile', filename: 'logs/error.log' }
  },
  categories: {
    default: { appenders: ['console', 'infoLogs'], level: 'info' },
    error: { appenders: ['errorLogs'], level: 'error' }
  }
});
const log = log4js.getLogger();
export default log